@PACKAGE_INIT@

# 包含导出目标
include("${CMAKE_CURRENT_LIST_DIR}/BaseTargets.cmake")

# 检查所有必需的目标
check_required_components(base)

# 设置包版本
set(Base_VERSION @PROJECT_VERSION@)

# 设置包含目录
set_and_check(Base_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")

# 设置库目录
set_and_check(Base_LIBRARY_DIRS "@PACKAGE_LIB_INSTALL_DIR@")

# 设置库文件
set(Base_LIBRARIES EasyBrep::Base)

# 提供查找包信息
if(NOT TARGET EasyBrep::Base)
    # 如果目标不存在，创建导入目标
    add_library(EasyBrep::Base INTERFACE IMPORTED)
    set_target_properties(EasyBrep::Base PROPERTIES
        INTERFACE_INCLUDE_DIRECTORIES "${Base_INCLUDE_DIRS}"
        INTERFACE_LINK_LIBRARIES "${Base_LIBRARIES}"
    )
endif()
